import { createApp,ref } from './vue.esm.js';

createApp({
    setup(){
        let show = ref(false)
        let students = ref([
            {id:1,name:"zs",age:22},
            {id:2,name:"ls",age:20},
            {id:3,name:"ww",age:23}
        ]);
        function modifyStu(){
            students = [
                {id:1,name:"xiaoming",age:22},
                {id:2,name:"xiaohong",age:20}
            ]
            console.log(students)
        }
        return {
            show,
            students,
            modifyStu
        }
    },
    
}).mount("#app");
